// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {
        System.out.println(Factory.getInstance("Apple"));
        Factory.getInstance("Apple").eat();
        System.out.println(Factory.getInstance("Orange"));
        Factory.getInstance("Orange").eat();
    }
}